{include file="public_tpl/head"/}
<title>文章管理 - 文章列表 - {$cfg_website}</title>
<meta name="keywords" content="{$cfg_keywords?:''}">
<meta name="description" content="{$cfg_description?:''}">
</head>
<body>
<!--面包屑-->
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 文章管理
    <span class="c-gray en">&gt;</span> 文章列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<!--/面包屑-->

<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="javascript:;" class="btn btn-danger f-btn-delall" data-url="{:url('delall')}">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
            </a>
            <a href="{:url('add')}" class="btn btn-primary">
                <i class="Hui-iconfont">&#xe600;</i> 添加文章
            </a>
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong>条 共<strong>{$list->lastPage()}</strong>页</span>
    </div>

    <table class="table table-border table-bg">
        <form id="f-table-form" method="post">
        <thead>
        <tr>
            <th width="50">
                <label for="f-check-all">全选</label>
                <input type="checkbox" id="f-check-all"/>
            </th>
            <th>ID</th>
            <th>标题</th>
            <th>标签</th>
            <th>分类</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="item"}
        <tr>
            <th>
                <input type="checkbox" class="f-check-item" name="check_ids[]" value="{$item.article_id}"/>
            </th>
            <th>{$item.article_id}</th>
            <td>{$item.title}</td>
            <td>
                <span class="label label-secondary radius"  data-toggle="tooltip" title="{$item.tags}" data-placement="top" >
                    <i class="Hui-iconfont Hui-iconfont-yanjing"></i>查看详细
                </span>
            </td>
            <td>{$item.cate_id}</td>
            <td>{$item.create_time}</td>
            <td>
                <a class="btn btn-primary" href="{:url('edit',['id'=>$item['article_id']])}">编辑</a>
                <a class="btn btn-danger" href="{:url('delete',['id'=>$item['article_id']])}">删除</a>
            </td>
        </tr>
        {/volist}
        </tbody>
        </form>
    </table>
    {$list->render()}
</div>

{include file="public_tpl/script"/}
</body>
</html>